import { createApp } from 'vue'
import App from './App.vue'
import store from './store';
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import 'element-plus/dist/index.css'
import 'amfe-flexible';
import router from './router'; // 引入你的路由实例
// 引入 Element Plus 的中文语言包
import zhCn from 'element-plus/es/locale/lang/zh-cn'; // 引入中文语言包
const app = createApp(App)
app.use(router); // 使用路由
app.use(store);
app.use(ElementPlus, { locale: zhCn })

// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.mount('#app')